/** * Strips a delimiter character from both ends of the source string. * * @param source * The source string to strip. * @param delimiter * The character to remove. * @return The stripped string. */ public static String strip(String source, char delimiter) { return strip(source, delimiter, true, true); }