parsing packet strings