fixed some bugs with adding contacts and deleting. Added function to check
for white space.