[java] Get the last three chars from any string - Java