isSnakeCase function

Used to check if a string is in snake case