Fixed bug in mode check statement

Used srtcmp instead of "=="