Free vibration of a string with time-varying length is analyzed. An equation of motion cannot be solved by the method of separation of the variables because the length of the string varies with time. New variables of position and time are introduced, and then the equation of motion which can be solved by the method using a hypergeometric differential equation is obtained. Exact solutions of free vibration are obtained by Laplace transformation.