Making sure that action and optional are strings