r144: Use ''.startswith() and ''.endswith() instead of string slicing to check for prefixes or suffixes.
r144: Use ''.startswith() and ''.endswith() instead of string slicing to check for prefixes or suffixes.