Separates keywords of a given string by commas and removes spaces at the beginnings and endings. Optionally tidys everything up.