org-babel-trim

org-babel-trim is a compiled Lisp function in `ob-core.el'.

(org-babel-trim STRING &optional REGEXP)

Strip leading and trailing spaces and carriage returns from STRING.
Like `org-babel-chomp' only it runs on both the front and back
of the string.