Checks for 'print' steatement before commiting the code