improved extract-strings and added merge-strings