convert input to strtolower

reduces 'CASE' required foreach command.