Syntax error with %S instead of %s