Fix usage of deprecated method

Just a small leftover in StringUtil (substring)