StudentProfileCreate: values should be trimmed automatically #2389

Fixes #2389 
The validation function is checking whether the parameters are null.
Perhaps trimming after ensuring they are not null is better?