String functions and bouncing ball