Standing waves on a string are produced only at specific frequencies.
For string fixed at both ends:
For string fixed at one end:
At closed/fixed ends, there must be nodes.
At open/loose ends, there must be antinodes.
End correction, e (for air column):