import re


def get_user_agent(text):
    """Method to extract the user_agent data from the very end of a string surrounded by quotes"""
    matches = re.findall(r"\"(.+?)\"", text)
    # matches is now ['String 1', 'String 2', 'String3']
    if matches:
        user_agent_info = " ".join(str(x) for x in matches[-1:])
    else:
        user_agent_info = ""

    return user_agent_info