Removes suffix from the end if present; otherwise returns this.
suffix
@useResult String removeSuffix(String suffix) => endsWith(suffix) ? substringSafe(0, length - suffix.length) : this;