use standard lib TrimSuffix func