apply str in revc function