cleaned process_pardons and added regexp validating code