Are there any API equivilants to Left(), Right(), Mid(), and/or Trim() functions?