I'm such a pain in the ass:

    text.gsub!(...).rstrip!