Updated accepts strings to not alter the given list.