Adjusts to pasted text