String memory usage - bit of a newbie question

I'm aware that ROM access is likely to be slower, but in my case I dont really care.

How is the compiler to know that?