Update utils.R

minor fixes in coding style