parsing Device possitions into Integers