Verify currency format in java. max length is 7(including dot) 3.