Check to see if a string ends in a space (which is often important when displaying it in the user interface, or when it gets concatenated with others).
Comproba se o texto remata nun espazo (isto a miúdo é importante na interface do usuario, ou se debe concatenarse con outras mensaxes).