Changed gsub to sub.