code: public static String trimLeadingCharacter(String str, final char leadingCharacter)
     {
        return trimLeadingCharacter(str, new CharacterFilter()
        {
           @Override
           public boolean isCharacterLegal(char character)
           {
              return character == leadingCharacter;
           }
        });
     }
docs: 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