Text this: A divide-and-conquer algorithm for quantum state preparation