'Strip command_string from output string
Cisco IOS adds backspaces into output for long commands (i.e. for commands that line wrap)'

@staticmethod
def strip_command(command_string, output):

    backspace_char = u'\x08'
    if (backspace_char in output):
        output = output.replace(backspace_char, u'')
        output_lines = output.split(u'\n')
        new_output = output_lines[1:]
        return u'\n'.join(new_output)
    else:
        command_length = len(command_string)
        return output[command_length:]
