Initial StringScanner mimicking Ruby StringScanner