Fixing issue where length was now shorter after stripped of HTML tags, resulting in index out of range exception