remove trailing whitespace
simplify renderEntityName code
add an entity with a space in it to the unit tests