remove newline in password produced by secret function