Use String#tr instead of String#gsub for performance