modified constructor when ArrayList<Character> is passed