Fixed syntax error and redundant check

Fixed missing function keyword in strlen() function.
Also removed redundant function existence check.