toString function for yearSem