fixing double quote issue with sprintf