code: private static void push( Stack<String> stack, String value )
      {
          if( stack.size() > 0 )
          {
              String data = stack.pop();
              if( "${".equals( data ) )
              {
                  stack.push( data );
                  stack.push( value );
              }
              else
              {
                  stack.push( data + value );
              }
          }
          else
          {
              stack.push( value );
          }
      }
docs: Pushes a value on a stack
  
  @param stack the stack
  @param value the value