Replacing str.partition with split to make it 2.4 compat