Skip to content

StringUtils.stripStart

Signature: StringUtils.stripStart(inputString, stripCharacters)

Returns: String result - the stripped string, or null if inputString is null

Strips any of a set of stripCharacters from the start of inputString, handling null by returning null.

Parameters

Type Name Description Default
String inputString the String to be stripped, may be null
String stripCharacters the set of characters to be stripped from the start of the String

Example

StringUtils.stripStart("This is a test!\r\n", "hsiT"); //  is a test!