Ignore leading and trailing commas, full stops and whitespace.