Add trim function to is_local.lua.

git-svn-id: http://fusionpbx.googlecode.com/svn/trunk@7505 e2954ef0-caed-11de-bd98-e341d93cc3cc