Changes Trim to TrimPrefix

- this ensures proper trimming of token and id for /users/:id endpoint

[#73644060]