Active support probably has a string method to help with this.