[java] How to get a string between two characters?