Use String#sub instead of overpowered String#gsub