Implement very simple implementation for strlen