strip trailing whitespace setting
added missing x param to get_uid