Add length to take longest matching string. Should fix that thing.