Python string methods to check matching conditions and return True of False ( Boolean )