added trim function to ace editor value to prevent whitespace before and after value keep being added