scanning simple strings