by having a loop to sanitise all array values