Check is done on string empty trailing spaces