Wrote tests for setting preferred name, changed squeeze to only squeeze spaces