Use push method to only push to an array, added add method for strings