Change doublequoted strings to singelquited if '\Resource' is contained