Parsing shortcodes in Java the easy way