The condition for String and count is not verifying and but when I run it, it is runs correctly i.e the string s is printed count times.