remove trailing whitespace
use unirest