If that is a space the below will do. Also note all double spaces within the
text also will be trimmed to a single space.
=TRIM(A1)
Still you see a character after text; then probably it may not be a space.
Check that using the below formula..and replace the character using
SUBSTITUTE()
=CODE(RIGHT(A1,1))