Removing global flag for replacing whitespaces