better handling of strings with double quotes and spaceS