Added API-key trimming. Closes #90