PrefixSuffixStringExtension extension

on

Methods

removePrefix(Pattern pattern) String
If the string starts with the prefix pattern returns this String with the prefix removed, otherwise return this.
removeSuffix(String other) String
If the string ends with the suffix, return this String with the suffix removed, otherwise return this.