added chaining for gsub, sub and match