scan through strings. supports forwards and backwards scanning.