Updated to prevent attack based on repeated key letters