Resolved Bugs IndexOutOfRangeException happened if users pasted text (not html) and text ended with a whitespace