implement filtering for strings (prefix, case-insensitive)