[BUG #7704] minor formatting

- make all the string templates align better with the Python code