abstracted out _flattenArrayByDelimiter, textarea resize