cleanup br when trimming pastable text