Added a trim to the partial response to fix 'Unrecognized Expression' bug
Trim inserted html in addition to updated html