You have an error somewhere else in your code above this part, but the compiler doesn't realize it until it gets here. Look at the last couple of lines before the definition of Print_String to find any errors.
I don't see anything wrong in the code you've posted. It's likely that there's an unmatched opening brace just before the function, since local function declarations are illegal.