trim whitespace. should fix #50