Added another error check in strip_it sub