remove nonsense spaces.
Use argument to control if creating tables. default is not.