added ord method to string object