Remove string_reverse and integrate it into string condition