Removing some random duplicates and unneeded spaces