Fixed issue where text in attributed string were not being corretly separated  when an attachment character is found