Removes suffix from the end of this string if present.
suffix
String removeSuffix(String suffix) => endsWith(suffix) ? substring(0, length - suffix.length) : this;