Returns null if this string is a whitespace.
String substringUntil(String separator) => substring(0, indexOf(separator));