conditions don't need extra spacing:

    if (exactMatch !== -1) {