Replace tab characters in strings