/* Name of the class has to be “Main” only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
// your codbnsjkjfnkfnjkdsfnksdne goes here
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while(t–>0)
{
String s=sc.next();
s=s.toLowerCase();
int l=s.length();
if((s.substring(0,l/2)).equals(s.substring(l/2+1,l)))
{
System.out.println(“YES”);
}
else if((s.substring(0,(l/2-1))).equals(s.substring(l/2+1,l)))
{
System.out.println(“YES”);
}
else
{
System.out.println(“NO”);
}
}
}
}
/* Name of the class has to be “Main” only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
// your codbnsjkjfnkfnjkdsfnksdne goes here
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while(t–>0)
{
String s=sc.next();
s=s.toLowerCase();
int l=s.length();
if((s.substring(0,l/2)).equals(s.substring(l/2+1,l)))
{
System.out.println(“YES”);
}
else if((s.substring(0,(l/2-1))).equals(s.substring(l/2+1,l)))
{
System.out.println(“YES”);
}
else
{
System.out.println(“NO”);
}
}
}
}