Twilio developer evangelist here.
You can do this... sometimes.
Twilio allows you to use an alphanumeric string as the sender ID for SMS messages. And you would do it exactly as you have shown, by setting the from parameter as the string. You do need to have an upgraded Twilio account, you can't use this on the free accounts.
However, it is only supported in about 145 countries and sadly, the US is not one of those countries.
I wrote up a blog post with more detail on how you do this. It is in Ruby, but I've not doubt you can follow along.
Edit
And re-reading the post shows that maybe I misunderstood here.
If you are trying to refer to the actual number to send by its friendly name, then that will not work. As I say above, using a string as the from argument will try to send the SMS using that string as an alphanumeric sender ID. It will not send the message from the number. If you are trying to send a message in the US this will then fail as you cannot send from an alphanumeric ID there.
To send a message from your Twilio number, you need to use the number itself as the from argument.