removing garbage at the end of the decrypted string