I'd like the $gwname to use the first letter of the firstname and the rest should be the lastname. For example Rick van de Poll should be "rpoll". The @Userid we use is turned as PollR. has anyone an idea?

$gwnaam=SUBSTR("@FULLNAME", LEN("@FULLNAME")-15, 1)
$gwnaam=$gwnaam + SUBSTR("@USERID", LEN("@USERID")-1, 15)