maxsplit should be 1 when a string is needed to split into 2 parts

str.split(sep, 2) will split a string into maximum 3 parts which is not desired