Add method to check blank string

@uditiiita Ayush's concern is appropriate. I think you should rename the method to `tdt_isBlankAfterTrimmingWhitespace`.