trim trailing ws in rb files