Calling the translate function from a string