Removed dependency on rails string extensions