java equivalent of python's string partition,"['foo', 'bar hello world']"