Strip whitespaces from tokens when registering