Spawn type based on the string's number