checking for trailing spaces in controlPoints string.