modify to remove newline in plaintext and modify xor_str to cycle key