Fixed a bug of string comprehension, where there will be no space after the last figure