Update TestWin.java

Updated with length and character checks.