[java] String Pattern Matching In Java