fix bug with prefix skipping/equal strings