replaced new line character to space before parsing query on extract field name.