String#sub instead String#gsub
Merge pull request #1793 from glaucocustodio/master

String#sub instead String#gsub. Faster code.