strip name for user authentication