added method for getting method name and parameters from string