Improved "string from xml" for user erros with extra white spaces.