Made string quotes consistent for the when example

The `when` example used mixed string quotes (some strings with single quotes, some with double quotes), without any real cause for the double quoted string (no string interpolation needed or expected on). All of them are now single quotes for consistency.