Remove extra spaces
Switch operans in or statement so @input_id can be overwrite