def replaceBlank(self, string, length):
        """

        :param string: An array of Char
        :param length: The true length of the string
        :return: The true length of new string
        """
        i = 0
        while length < i:
            if string[i] == " ":
                string.append("")
                string.append("")
                length += 2
                for j in xrange(length-1, i, -1):
                    string[j] = string[j-2]

                string[i:i+3] = list("%20")
                i += 2
            i += 1

        return length
dataset/ETHPy150Open algorhythms/LintCode/Space Replacement.py/Solution.replaceBlank/swapped operands of `<`