Create tokens for match and convert part of strings to type