Added functions to extract user-agent version and user-agent string