added methods

method added: convert string inputted into array;
comparing elements in such array to find difference