parse User Agent