ensureNotEmpty

Returns null if the string is empty.