Modified get activation function by string