Updating the get_string() function