Solving issue "Trailing whitespace in the value of a property is hard to identify in failure analysis descriptions #31407"

Comment From: snicoll

@TheoCaldas thank you for making your first contribution to Spring Boot.