merged spchar and util