JMPDComm: Move the MPD protocol delimiter pattern to StringUtils.
MPD.java: Refactor getDir() as a switch.
StringUtils: Clean up and simplify the methods.