Update functions.sh

Fixed spelling errors.