Whitespace removal and disconnect()