If you are removing the character (Arend's example) rather than replacing it (my earlier example) be sure to perform the character removals BEFORE you take the first 8 chars. Arend's example does this, but it's important to notice. Here's a consolidated method that uses an array of chars to remove:
 Code:
$Username=@USERID
$aReplace = ' ','.','_'   ; list of chars in user name to remove
For Each $C in $aReplace
  $Username = Replace($Username, $C, '')
Next
$Username = Left($Username, 8)
Glenn

_________________________
Actually I am a Rocket Scientist! \:D