Text this: Computing Edit Distance between Rooted Labeled Caterpillars