def add_str_to_arr_elements(arr, before_str, after_str):
    """adding string before and after every string item in an array of strings"""

    arr2 = []
    for item in arr:
        arr2.append(before_str + item + after_str)
    return arr2