Big parsing method for handling quoted string