prioritize substrings that start at 0