Updated strcmp to regex for authorized prints