When I perform
String test=\"23x34 \"; String[] array=test.split(\"x\"); //splitting using simple letter
I got two items in array as 23 and
You can also use an embedded flag in your regex:
String[] array = test.split("(?i)x"); // splits case insensitive