Ruby19: gsub can take a Hash in this case
No need to dup
Reduce objects
Use Symbols
No need to strip an already stripped text
Let's not call an instance of String "line". That is so confusing...