Use gsub() instead of gsub!()

If no substitutions were made, user is set to "nil"