fixed for null and undefinied strings and updates to the readme