cleaned up substrings