I wanted to only keep the first letter of the first name. This is due to discrepancies between the name for available profs and in the reviews. In the case where there are more than 3 words in the name, sometimes, the middle one is shortened to only the first letter in the review so I wanted to omit it.
Would this still work in that case? Sorry if the function name isn't clear.