Also, adding this trailing spaces, makes the textarea content (value) on the web to start with those spaces, and you need to delete it on the UI before writing anything.