# Force title case with printed name containing a variable

OK using inform 7 here… here’s my code:

``A foo is a kind of room. A foo has a number called foonum. The printed name of a foo is a "[foonum in words]". The description is "(this line is for testing purposes) You see a [foonum] here."``

The transcript output looks like this:

``````zero
You see a 0 here.

>e

one
You see a 1 here.

>e

two
You see a 2 here.

>e

three
You see a 3 here.
``````

I want the room name in the number to be title case, so it’s like One instead of one. How can I do that?

Long time no see!

Try this:[code]A foo is a kind of room. A foo has a number called foonum.

For printing the name of a foo: let placename be an indexed text; let placename be “[foonum in words]”; say the placename in title case.

The description is “(this line is for testing purposes) You see a [foonum] here.”
[/code]

Woot! Thanks, that worked. Sorry for being away. You know how it goes, stuff gets in the way.