Added sub/gsub support. Need gsub tests. Only works the func.