cleans up a semicolon delimited list (remove white spaces, multiple semicolons, semicolons at the beginning or the end)