Parsing shortcodes in Java - easy as... cake!