Added a warning for non-string methods.