Fix Q1.3 python solution

s2.replace was ineffective, reassign s2 to result from replace