Added trim() to server response

It looks like the server changed its response to the GET for some
reason.