public static String stripLeadingDollar(String str){
  return (str.charAt(0) == '$') ? str.substring(1) : str;
}

public static String stripLeadingDollar ( String str ) { return ( str . charAt ( 0 ) == '$' ) ? str . substring ( 1 ) : str ; }
removes any leading $ from the given string .
