Handle nil input strings.