I've mentioned only the symmetry, but obviously I think we need this (and a bunch of other string related functions, since currently the string related functions are a bit lacking), otherwise I would have not submitted this suggestion. I've often needed in my code this particular check and I'd suggest include a few string related functions as well.
Just a quick glance at the number of projects using the third-party string library s.el (
https://github.com/magnars/s.el/blob/master/s.el) should be all the motivation required to improve upon the existing string functions. I think it's quite important to provide an API closer to that of popular programming languages, used often for text processing(Perl, Python, Ruby, etc). That would include functions like:
* string-join
* string-trim/string-trim-left/string-trim-right
* string-chop
* string-chomp
The best text editor in the world should have an extensive built-in string manipulation API, right?