removeSuffix

fnIStr removeSuffix(IStr str, IStr suffix)

Removes the specified suffix from the end of the string if it exists.