Attempting to create repeated text in a SpEL expression can result in errors that are not very helpful to the user.

We should therefore improve the diagnostics so that the user is provided a meaningful error message.