Split prepareParameters into String and Array sub methods