instructor can download student list with separated first name and last name

Why is splitName method also doing a 'removeExtraSpace'? It should be done outside this method.