Make conditional check use lowercase values only