In English, a root can be followed by other letters to form a longer word, called a derivative. For example, the root "help" followed by "ful" forms "helpful".
Given a dictionary of roots and a sentence of words separated by single spaces, replace every derivative in the sentence with the root that forms it. If a word can be formed by more than one root, use the shortest one. Return the sentence after the replacement.