Actually 'if pos > -1' is replaced with 'if pos', not the other way around :)