edited gsub use to include regular expression