fix undefined method name for String