corrected space placement in wrap_words_in_spans