Removed the dependency on Rails string extensions