How To Slice A String In Java