fixes empty string issue