moved string optimization to sgs, updated sgs-sdl