Remove the startswith function as it is no longer necessary.
Remove debug output.