Updated get_a_name and get_a_id to better strip \n s