Ignore whitespace when determining colour