private static final String normalizeMoveString(String str){
  if (str.length() > 0) {
    char lastChar=str.charAt(str.length() - 1);
    if ((lastChar == '#') || (lastChar == '+')) {
      str=str.substring(0,str.length() - 1);
    }
  }
  return str;
}

private static final String normalizeMoveString ( String str ) { if ( str . length ( ) > 0 ) { char lastChar = str . charAt ( str . length ( ) - 1 ) ; if ( ( lastChar == '#' ) || ( lastChar == '+' ) ) { str = str . substring ( 0 , str . length ( ) - 1 ) ; } } return str ; }
convert move string to lower case and remove special check / mate symbols .
