functions: fix some formatting and a minor quoting issue