Distinguishing Strings from Lists in Erlang