check for extra characters