Fix the previous commit with better implementation

Literal strings are static automatically. See for example, http://stackoverflow.com/questions/349025/is-a-string-literal-in-c-created-in-static-memory