added string repeat function example