gsub, rest & test