Added proper backslash escaping

Added backslash escaping for single quotes for consistency and best-practices.