java string get substring after last character