seems string.replace() not compatible with python3
seems string.replace() not compatible with python3