add cases for more than one spaces