* Changed gsub statement. Used Regex groups.