Added abstracting function for mapping two lists to strings