Fix Q1.3 python solution

The first solution was failing against given tests. 
Reassigning s2 to result from replace resolves this