added strip function