comment-string-strip

comment-string-strip is a compiled Lisp function in `newcomment.el'.

(comment-string-strip STR BEFOREP AFTERP)

Strip STR of any leading (if BEFOREP) and/or trailing (if AFTERP) space.