final commit. Fixed uppercase/camelcase bug by adding trim() function.  page works perfectly now