replaced single quotes by quotes, escaped quotes in string where necessary