moved string_to_int conversion code from races controller to a seperate library program in the interest of the DRY principle. races.php looks much cleaner