Perhaps your assignment is in the wrong order? st1=st2;
At this point st2 has not been initialized. Remember the value on the right side of the assignment is being assigned the values of the left side of the assignment.
By the way you should probably get values for the age and fathersage, although the values will be undefined, the strings will be at their default values (empty).