The second parameter is a set of allowed characters.
strspn will return an zero-based index of a first non-allowed character.The second parameter is a set of allowed characters.
strspn will return an zero-based index of a first non-allowed character.