Supporting empty strings as well.