Your code ends with };, right? The semicolon ; is not needed. I am not sure how you run this function, could you please provide more details about how you use this function? From the error message, maybe you are using some variable or constant that is more than 42 characters.