Make compatible with Ruby 1.9
Remove trailing whitespaces