Making two scan byte functions, one for strings, other for buffers