helpers: Fix stripNonNumerics

Signed-off-by: Robin Hallabro <robin.hallabro@sveabyran.se>