Trim input.

Don't throw errors if a space is included after an ID.