auto removing trailing whitespaces in rb