Inline trimSuffix