That appears to be a dynamic text layout element. What you're seeing is being caused by the delimiter on the dynamic text. By default, the delimiter includes a whitespace character in addition to whatever you include.
When you define a delimiter, it will return all the values in the table, even the nulls, separated by that delimeter:
Since you're using an Arcade expression, try this:
var role = Boolean($feature.ROLE_ID == 12);
if(role){
return $feature.COMPANY_NAME + ', '
}
A bit better, but there's a pesky comma at the end of the string. Since your expression is simply filtering based on an attribute, it's simpler to add a Custom query to the dynamic text itself.
- Josh Carlson
Kendall County GIS