Split a string delimited by another string and return 2 non-empty elements