Find mapcodes in a string