check string scanner (c syntax)