added offset keyword parameter to prefixes and iterprefixes to make it possible to search for prefixes at a given offset in the query, therefore avoiding to have to create a string slice for every single character when scanning strings