Use strdup instead of get_static() calls
Remove unused include and redundant comments
Fix typo