Converted some str replacement to python3 format calls.