src/main/java/org/jboss/util/Strings.java
public static String trimLeadingCharacter(String str, final char leadingCharacter)
   {
      return trimLeadingCharacter(str, new CharacterChecker()
      {
         public boolean isCharacterLegal(char character)
         {
            return character == leadingCharacter;
         }
      });
   }
public static String trimLeadingCharacter(String str, final char leadingCharacter)
   {
      return trimLeadingCharacter(str, new CharacterChecker()
      {
         public boolean isCharacterLegal(char character)
         {
            return character == leadingCharacter;
         }
      });
   }
Trim all occurences of the supplied leading character from the given String.

@param str the string to check
@param leadingCharacter the leading character to be trimmed
@return the trimmed String