Consider strings with this format: where id, string1, string2 and string3 can be string of variable length, and extension is an image extension type. For example, two possible strings could be: I need tokenizer method in JavaScript for an express/nodejs API that takes these strings in input and outputs an object with this format: For the example strings this tokenizer