Java Check If String Only Contains Whitespace In Python For All Selected Lines