Fixed memory leak error, and inserted comparison function w/ strcmp. If strcmp proves to be too inefficient, will be implementing a unique function to identify strings later on.