IStr removeSuffix(IStr str, IStr suffix)
Removes the specified suffix from the end of the string if it exists.