resolve string