The whole line is already stripped at the beginning of the loop, so we only need to rstrip the key and lstrip the value.