Fix config switch check

Removed trailing pipe