fixed stuff

Now using trim on the server input.

Also replaced hex() with oct(). (Whoops)