basic cleaning up in naive bayes