the \0 would be better as \000 so that when a password starts with a number, part or all of the number isn't included with \0 to form another character