Add functions str2map() and int2strmap() by LU324_, q66 and DigitalKiwi.