single quote and remove extra lines