string remove extra spaces, trim
array find duplicates unsorted and class basics