Remove trailing whitespaces for results