separate year and month to string