Scanner is like Ruby's StringScanner