Use strings.TrimPrefix

It's much more readable than the previous implementation.