change condition for empty string