edits text and changes format