If parameter is an empty string, then make it nil.