use enum instead of string while determing the operation to be
performed

Change-Id: Idef8e2cc8eb537841cb5043bc44330b0fd88d639