[java] How to get the last characters in a String in Java, regardless of String size