Yes, I can't think of a situation in which whitespace at the beginning or end of a principal name would be meaningful.