Cast matches to variables instead of using +