check if a given string is a valid java identifier