added checks for leading / trailing spaces in user.{user,home}