World-sheet versus spectrum symmetries in heterotic and type II superstrings